/**
 * Created by mkDark on 2018/3/20.
 */
var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var YjxBaseModel = require('./ItbBaseModel');
var CONFIG = require('../../config');


var ItbQaInfoModel = function (obj) {
    YjxBaseModel.call(this,obj);

  //  CREATE TABLE `itb_qa_info` (
  //`info_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '资料id',
  //`qa_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '问卷调查模版id',
  //`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id（预留字段）',
  //`data` mediumtext COMMENT '反馈内容（json字符串）',
  //`desc` varchar(100) DEFAULT NULL COMMENT '备注',
  //`mobile` varchar(50) DEFAULT NULL COMMENT '联系手机号',
  //`mail` varchar(100) DEFAULT NULL COMMENT '电子邮件地址',
  //`qq` varchar(50) DEFAULT NULL COMMENT 'qq号',
  //`addr` varchar(200) DEFAULT NULL COMMENT '联系地址',
  //`create_time` datetime NOT NULL,
  //`update_time` datetime NOT NULL,
  //`update_by` varchar(50) NOT NULL,
  //`del_flg` int(1) NOT NULL DEFAULT '0',
  //      PRIMARY KEY (`info_id`)
  //  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='问卷调查反馈表'


};

ItbQaInfoModel.prototype = new YjxBaseModel();

// 取得表名
ItbQaInfoModel.prototype.getTableName = function(){
    return 'itb_qa_info';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
ItbQaInfoModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'info_id='+this.info_id;
};





module.exports = ItbQaInfoModel;

